import axios from './axios'

export function getCategory() {
  return new Promise(async (resolve, reject) => {
    try {
      const ret = await axios.get('/api/category/list')
      resolve(ret.data)
    } catch (error) {
      reject(error)
    }
  })
}
